﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
                    xmlns:wpf="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit"
                    xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended">
    <Style TargetType="{x:Type Button}">
        <Setter Property="Margin" Value="5"/>
    </Style>
    <Style TargetType="{x:Type ListBoxItem}">
        <Setter Property="SnapsToDevicePixels" Value="true" />
        <Setter Property="OverridesDefaultStyle" Value="true" />
        <Setter Property="Padding" Value="3" />
        <Setter Property="HorizontalContentAlignment" Value="Stretch" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListBoxItem}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="HoverOn">
                            <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="BackgroundGradientOver" Storyboard.TargetProperty="Opacity" To="0.73" />
                        </Storyboard>
                        <Storyboard x:Key="HoverOff">
                            <DoubleAnimation Duration="00:00:00.4000000" Storyboard.TargetName="BackgroundGradientOver" Storyboard.TargetProperty="Opacity" To="0" />
                        </Storyboard>
                        <Storyboard x:Key="SelectedOn">
                            <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="BackgroundGradientSelected" Storyboard.TargetProperty="Opacity" To="0.84" />
                            <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="BackgroundGradientSelectedDisabled" Storyboard.TargetProperty="Opacity" To="0.55" />
                        </Storyboard>
                        <Storyboard x:Key="SelectedOff">
                            <DoubleAnimation Duration="00:00:00.4000000" Storyboard.TargetName="BackgroundGradientSelected" Storyboard.TargetProperty="Opacity" To="0" />
                            <DoubleAnimation Duration="00:00:00.4000000" Storyboard.TargetName="BackgroundGradientSelectedDisabled" Storyboard.TargetProperty="Opacity" To="0" />
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <Grid SnapsToDevicePixels="true">
                        <Rectangle x:Name="BackgroundGradientOver" RadiusX="2" RadiusY="2" Stroke="{DynamicResource MouseOverBorderBrush}" Opacity="0" Fill="{DynamicResource MouseOverBrush}"/>
                        <Rectangle x:Name="BackgroundGradientSelectedDisabled" RadiusX="2" RadiusY="2" Opacity="0" Fill="{DynamicResource ListItemSelectedBrush}" Stroke="{DynamicResource ListItemSelectedBorderBrush}"/>
                        <Rectangle x:Name="BackgroundGradientSelected" Stroke="{DynamicResource PressedBorderBrush}" StrokeThickness="1" RadiusX="2" RadiusY="2" Opacity="0" Fill="{DynamicResource PressedBrush}">

                        </Rectangle>
                        <ContentPresenter x:Name="contentPresenter" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" />
                    </Grid>
                    <ControlTemplate.Triggers>

                        <Trigger Property="IsSelected" Value="true">
                            <Trigger.ExitActions>
                                <BeginStoryboard Storyboard="{StaticResource SelectedOff}" x:Name="SelectedOff_BeginStoryboard" />
                            </Trigger.ExitActions>
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource SelectedOn}" x:Name="SelectedOn_BeginStoryboard" />
                            </Trigger.EnterActions>

                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.ExitActions>
                                <BeginStoryboard Storyboard="{StaticResource HoverOff}" x:Name="HoverOff_BeginStoryboard" />
                            </Trigger.ExitActions>
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource HoverOn}" />
                            </Trigger.EnterActions>
                        </Trigger>

                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="{x:Type ComboBoxItem}">
        <Setter Property="SnapsToDevicePixels" Value="true" />
        <Setter Property="OverridesDefaultStyle" Value="true" />
        <Setter Property="Padding" Value="3" />
        <Setter Property="HorizontalContentAlignment" Value="Stretch" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ListBoxItem}">
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="HoverOn">
                            <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="BackgroundGradientOver" Storyboard.TargetProperty="Opacity" To="0.73" />
                        </Storyboard>
                        <Storyboard x:Key="HoverOff">
                            <DoubleAnimation Duration="00:00:00.4000000" Storyboard.TargetName="BackgroundGradientOver" Storyboard.TargetProperty="Opacity" To="0" />
                        </Storyboard>
                        <Storyboard x:Key="SelectedOn">
                            <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="BackgroundGradientSelected" Storyboard.TargetProperty="Opacity" To="0.84" />
                            <DoubleAnimation Duration="00:00:00.1000000" Storyboard.TargetName="BackgroundGradientSelectedDisabled" Storyboard.TargetProperty="Opacity" To="0.55" />
                        </Storyboard>
                        <Storyboard x:Key="SelectedOff">
                            <DoubleAnimation Duration="00:00:00.4000000" Storyboard.TargetName="BackgroundGradientSelected" Storyboard.TargetProperty="Opacity" To="0" />
                            <DoubleAnimation Duration="00:00:00.4000000" Storyboard.TargetName="BackgroundGradientSelectedDisabled" Storyboard.TargetProperty="Opacity" To="0" />
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <Grid SnapsToDevicePixels="true">
                        <Rectangle x:Name="BackgroundGradientOver" RadiusX="2" RadiusY="2" Stroke="{DynamicResource MouseOverBorderBrush}" Opacity="0" Fill="{DynamicResource MouseOverBrush}"/>
                        <Rectangle x:Name="BackgroundGradientSelectedDisabled" RadiusX="2" RadiusY="2" Opacity="0" Fill="{DynamicResource ListItemSelectedBrush}" Stroke="{DynamicResource ListItemSelectedBorderBrush}"/>
                        <Rectangle x:Name="BackgroundGradientSelected" Stroke="{DynamicResource PressedBorderBrush}" StrokeThickness="1" RadiusX="2" RadiusY="2" Opacity="0" Fill="{DynamicResource PressedBrush}">

                        </Rectangle>
                        <ContentPresenter x:Name="contentPresenter" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" />
                    </Grid>
                    <ControlTemplate.Triggers>

                        <Trigger Property="IsSelected" Value="true">
                            <Trigger.ExitActions>
                                <BeginStoryboard Storyboard="{StaticResource SelectedOff}" x:Name="SelectedOff_BeginStoryboard" />
                            </Trigger.ExitActions>
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource SelectedOn}" x:Name="SelectedOn_BeginStoryboard" />
                            </Trigger.EnterActions>

                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.ExitActions>
                                <BeginStoryboard Storyboard="{StaticResource HoverOff}" x:Name="HoverOff_BeginStoryboard" />
                            </Trigger.ExitActions>
                            <Trigger.EnterActions>
                                <BeginStoryboard Storyboard="{StaticResource HoverOn}" />
                            </Trigger.EnterActions>
                        </Trigger>

                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type TextBox}">
        <Setter Property="Margin" Value="5"/>
        <Setter Property="Validation.ErrorTemplate">
            <Setter.Value>
                <ControlTemplate>
                    <DockPanel LastChildFill="True">
                        <TextBlock DockPanel.Dock="Right" Foreground="Red"
									FontSize="14" FontWeight="Bold"><Run Text="!"/></TextBlock>
                        <Border BorderBrush="Red" BorderThickness="1">
                            <AdornedElementPlaceholder/>
                        </Border>
                    </DockPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="Validation.HasError" Value="true">
                <Setter Property="ToolTip"
							Value="{Binding (Validation.Errors).CurrentItem.ErrorContent, RelativeSource={RelativeSource Self}}"/>

            </Trigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="ListViewItemFocusVisual">
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate>
                    <Rectangle Stroke="#8E6EA6F5" StrokeThickness="1" RadiusX="2" RadiusY="2" />
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="{x:Type ListBox}" x:Key="NavigationList">
        <Setter Property="BorderBrush" Value="Transparent" />
        <Setter Property="Background" Value="Transparent" />
    </Style>
    <Style x:Key="DottedBorder" TargetType="{x:Type Border}">
        <Setter Property="BorderThickness" Value="0 0 0 1" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}, Path=IsSelected}" Value="false">
                <Setter Property="BorderBrush" Value="{DynamicResource DottedBorderBrush}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}, Path=IsSelected}" Value="true">
                <Setter Property="BorderBrush" Value="{DynamicResource TransparentBorderBrush}"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <Style x:Key="FieldLabel" TargetType="{x:Type Label}">
        <Setter Property="FontSize" Value="16" />
        <Setter Property="FontFamily" Value="Segoe UI" />
        <Setter Property="Foreground" Value="Black" />
    </Style>
    <!-- Login Screen Styles -->
    <Style x:Key="LoginWindow" TargetType="{x:Type Window}">
        <Setter Property="Height" Value="414" />
        <Setter Property="Width" Value="550" />
        <Setter Property="WindowStyle" Value="None" />
        <Setter Property="Topmost" Value="True"/>
        <Setter Property="Background" >
            <Setter.Value>
                <ImageBrush ImageSource="pack://application:,,,/Hisaab.Client.Common;component/Resources/Images/Splash.jpg" />
            </Setter.Value>
        </Setter>
        <Setter Property="BorderThickness" Value="0" />
    </Style>
    <Style x:Key="LoginAppName" TargetType="{x:Type Label}">
        <Setter Property="FontSize" Value="64" />
        <Setter Property="Foreground" Value="#FF135EA1" />
        <Setter Property="HorizontalContentAlignment" Value="Right" />
    </Style>
    <Style x:Key="LoginVersion" TargetType="{x:Type Label}">
        <Setter Property="FontSize" Value="15" />
        <Setter Property="FontWeight" Value="Bold" />
        <Setter Property="Foreground" Value="#FFC1C1C1" />
        <Setter Property="HorizontalContentAlignment" Value="Right" />
    </Style>
    <Style x:Key="LoginCopyRights" TargetType="{x:Type Label}">
        <Setter Property="FontSize" Value="11" />
        <Setter Property="Foreground" Value="#FF135EA1" />
    </Style>
    <Style x:Key="MetroHeader" TargetType="{x:Type TextBlock}">
        <Setter Property="FontSize" Value="36" />
        <Setter Property="FontFamily" Value="Segoe UI" />
        <Setter Property="Foreground" Value="#99B5FF" />
    </Style>
    <Style x:Key="MetroHeader2" TargetType="{x:Type TextBlock}">
        <Setter Property="FontSize" Value="40" />
        <Setter Property="FontFamily" Value="Segoe UI" />
        <Setter Property="Foreground" Value="#FF135EA1" />
    </Style>

    <!-- Fluent backstage items styles -->
    <Style TargetType="{x:Type Fluent:Button}" x:Key="ButtonBackstageStyleSmall">
        <Setter Property="Template" Value="{DynamicResource ButtonBackstageControlTemplateSmall}"/>
    </Style>
    <ControlTemplate x:Key="ButtonBackstageControlTemplateSmall" TargetType="{x:Type Fluent:Button}">
        <Grid x:Name="grid" Width="Auto" Height="Auto">
            <Rectangle x:Name="rectangle" Fill="{x:Null}" Stroke="{DynamicResource ButtonBackstageShadowBrush}" Height="2" VerticalAlignment="Bottom" RadiusX="2" RadiusY="2" Margin="2,0"/>
            <Border x:Name="border" BorderThickness="1" CornerRadius="3" Margin="0" BorderBrush="{DynamicResource ButtonBackstageOutterBorderBrush}">
                <Border x:Name="border1" BorderBrush="Black" BorderThickness="0" CornerRadius="2" Background="{DynamicResource ButtonBackstageInnerBackgroundBrush}">
                    <StackPanel Margin="2" x:Name="stackPanel" Orientation="Horizontal">
                        <ContentPresenter x:Name="iconImage" HorizontalAlignment="Center" Height="AUto" VerticalAlignment="Center" Content="{Binding Icon, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource StringToImageConvert}}" Width="Auto" Margin="6,0,0,0" SnapsToDevicePixels="True"/>
                        <Fluent:TwoLineLabel x:Name="twoLineLabel" HasTwoLines="False" Margin="5,0,0,0" VerticalAlignment="Center" Text="{TemplateBinding Header}" HorizontalContentAlignment="Center"/>
                    </StackPanel>
                </Border>
            </Border>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Opacity" TargetName="iconImage" Value="0.5"/>
                <Setter Property="Opacity" TargetName="twoLineLabel" Value="0.5"/>
                <Setter Property="Effect" TargetName="iconImage">
                    <Setter.Value>
                        <Fluent:GrayscaleEffect/>
                    </Setter.Value>
                </Setter>
            </Trigger>
            <Trigger Property="Size" Value="Small">
                <Setter Property="Visibility" TargetName="iconImage" Value="Collapsed"/>
                <Setter Property="Orientation" TargetName="stackPanel" Value="Horizontal"/>
                <Setter Property="HorizontalAlignment" TargetName="stackPanel" Value="Center"/>
                <Setter Property="VerticalAlignment" TargetName="stackPanel" Value="Center"/>
                <Setter Property="Margin" TargetName="twoLineLabel" Value="2"/>
                <Setter Property="Width" TargetName="grid" Value="Auto"/>
                <Setter Property="Height" TargetName="grid" Value="Auto"/>
                <Setter Property="HorizontalAlignment" TargetName="twoLineLabel" Value="Center"/>
                <Setter Property="HasTwoLines" TargetName="twoLineLabel" Value="False"/>
            </Trigger>
            <Trigger Property="Size" Value="Middle">
                <Setter Property="Orientation" TargetName="stackPanel" Value="Horizontal"/>
                <Setter Property="VerticalAlignment" TargetName="stackPanel" Value="Center"/>
                <Setter Property="Margin" TargetName="twoLineLabel" Value="7,0"/>
                <Setter Property="Margin" TargetName="iconImage" Value="9,2,9,0"/>
                <Setter Property="Width" TargetName="grid" Value="Auto"/>
                <Setter Property="Height" TargetName="grid" Value="Auto"/>
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="BorderBrush" TargetName="border" Value="#FFC8C8C9"/>
                <Setter Property="Opacity" TargetName="rectangle" Value="0"/>
                <Setter Property="Background" TargetName="border1">
                    <Setter.Value>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="White" Offset="0.009"/>
                            <GradientStop Color="#FFFBFBFB" Offset="1"/>
                        </LinearGradientBrush>
                    </Setter.Value>
                </Setter>
            </Trigger>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource ButtonHoverOuterBorderBrush}"/>
                <Setter Property="Background" TargetName="border" Value="{DynamicResource ButtonHoverOuterBackgroundBrush}"/>
                <Setter Property="BorderBrush" TargetName="border1" Value="{DynamicResource ButtonHoverInnerBorderBrush}"/>
                <Setter Property="Background" TargetName="border1" Value="{DynamicResource ButtonHoverInnerBackgroundBrush}"/>
                <Setter Property="BorderThickness" TargetName="border1" Value="1"/>
                <Setter Property="Margin" TargetName="stackPanel" Value="1"/>
            </Trigger>
            <Trigger Property="IsFocused" Value="True">
                <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource ButtonHoverOuterBorderBrush}"/>
                <Setter Property="Background" TargetName="border" Value="{DynamicResource ButtonHoverOuterBackgroundBrush}"/>
                <Setter Property="BorderBrush" TargetName="border1" Value="{DynamicResource ButtonHoverInnerBorderBrush}"/>
                <Setter Property="Background" TargetName="border1" Value="{DynamicResource ButtonHoverInnerBackgroundBrush}"/>
                <Setter Property="BorderThickness" TargetName="border1" Value="1"/>
                <Setter Property="Margin" TargetName="stackPanel" Value="1"/>
            </Trigger>
            <Trigger Property="IsPressed" Value="True">
                <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource ButtonPressedOuterBorderBrush}"/>
                <Setter Property="Background" TargetName="border" Value="{DynamicResource ButtonPressedOuterBackgroundBrush}"/>
                <Setter Property="Background" TargetName="border1" Value="{DynamicResource ButtonPressedInnerBackgroundBrush}"/>
                <Setter Property="BorderBrush" TargetName="border1" Value="{DynamicResource ButtonPressedInnerBorderBrush}"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <Style TargetType="{x:Type Fluent:ToggleButton}" x:Key="ToggleButtonBackstageStyleSmall">
        <Setter Property="Template" Value="{DynamicResource ToggleButtonBackstageControlTemplateSmall}"/>
    </Style>
    <ControlTemplate x:Key="ToggleButtonBackstageControlTemplateSmall" TargetType="{x:Type Fluent:ToggleButton}">
        <Grid x:Name="grid" Width="Auto" Height="Auto">
            <Rectangle x:Name="rectangle" Fill="{x:Null}" Stroke="{DynamicResource ButtonBackstageShadowBrush}" Height="2" VerticalAlignment="Bottom" RadiusX="2" RadiusY="2" Margin="2,0"/>
            <Border x:Name="border" BorderThickness="1" CornerRadius="3" Margin="0" BorderBrush="{DynamicResource ButtonBackstageOutterBorderBrush}">
                <Border x:Name="border1" BorderBrush="Black" BorderThickness="0" CornerRadius="2" Background="{DynamicResource ButtonBackstageInnerBackgroundBrush}">
                    <StackPanel Margin="2" x:Name="stackPanel" Orientation="Horizontal">
                        <ContentPresenter x:Name="iconImage" HorizontalAlignment="Center" Height="AUto" VerticalAlignment="Center" Content="{Binding Icon, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource StringToImageConvert}}" Width="Auto" Margin="6,0,0,0" SnapsToDevicePixels="True"/>
                        <Fluent:TwoLineLabel x:Name="twoLineLabel" HasTwoLines="False" Margin="5,0,0,0" VerticalAlignment="Center" Text="{TemplateBinding Header}"/>
                    </StackPanel>
                </Border>
            </Border>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="Opacity" TargetName="iconImage" Value="0.5"/>
                <Setter Property="Opacity" TargetName="twoLineLabel" Value="0.5"/>
                <Setter Property="Effect" TargetName="iconImage">
                    <Setter.Value>
                        <Fluent:GrayscaleEffect/>
                    </Setter.Value>
                </Setter>
            </Trigger>
            <Trigger Property="Size" Value="Small">
                <Setter Property="Visibility" TargetName="iconImage" Value="Collapsed"/>
                <Setter Property="Orientation" TargetName="stackPanel" Value="Horizontal"/>
                <Setter Property="HorizontalAlignment" TargetName="stackPanel" Value="Center"/>
                <Setter Property="VerticalAlignment" TargetName="stackPanel" Value="Center"/>
                <Setter Property="Margin" TargetName="twoLineLabel" Value="2"/>
                <Setter Property="Width" TargetName="grid" Value="Auto"/>
                <Setter Property="Height" TargetName="grid" Value="Auto"/>
                <Setter Property="HorizontalAlignment" TargetName="twoLineLabel" Value="Center"/>
                <Setter Property="HasTwoLines" TargetName="twoLineLabel" Value="False"/>
            </Trigger>
            <Trigger Property="Size" Value="Middle">
                <Setter Property="Orientation" TargetName="stackPanel" Value="Horizontal"/>
                <Setter Property="VerticalAlignment" TargetName="stackPanel" Value="Center"/>
                <Setter Property="Margin" TargetName="twoLineLabel" Value="7,0"/>
                <Setter Property="Margin" TargetName="iconImage" Value="9,2,9,0"/>
                <Setter Property="Width" TargetName="grid" Value="Auto"/>
                <Setter Property="Height" TargetName="grid" Value="Auto"/>
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter Property="BorderBrush" TargetName="border" Value="#FFC8C8C9"/>
                <Setter Property="Opacity" TargetName="rectangle" Value="0"/>
                <Setter Property="Background" TargetName="border1">
                    <Setter.Value>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="White" Offset="0.009"/>
                            <GradientStop Color="#FFFBFBFB" Offset="1"/>
                        </LinearGradientBrush>
                    </Setter.Value>
                </Setter>
            </Trigger>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource ButtonHoverOuterBorderBrush}"/>
                <Setter Property="Background" TargetName="border" Value="{DynamicResource ButtonHoverOuterBackgroundBrush}"/>
                <Setter Property="BorderBrush" TargetName="border1" Value="{DynamicResource ButtonHoverInnerBorderBrush}"/>
                <Setter Property="Background" TargetName="border1" Value="{DynamicResource ButtonHoverInnerBackgroundBrush}"/>
                <Setter Property="BorderThickness" TargetName="border1" Value="1"/>
                <Setter Property="Margin" TargetName="stackPanel" Value="1"/>
            </Trigger>
            <Trigger Property="IsFocused" Value="True">
                <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource ButtonHoverOuterBorderBrush}"/>
                <Setter Property="Background" TargetName="border" Value="{DynamicResource ButtonHoverOuterBackgroundBrush}"/>
                <Setter Property="BorderBrush" TargetName="border1" Value="{DynamicResource ButtonHoverInnerBorderBrush}"/>
                <Setter Property="Background" TargetName="border1" Value="{DynamicResource ButtonHoverInnerBackgroundBrush}"/>
                <Setter Property="BorderThickness" TargetName="border1" Value="1"/>
                <Setter Property="Margin" TargetName="stackPanel" Value="1"/>
            </Trigger>
            <Trigger Property="IsPressed" Value="True">
                <Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource ButtonPressedOuterBorderBrush}"/>
                <Setter Property="Background" TargetName="border" Value="{DynamicResource ButtonPressedOuterBackgroundBrush}"/>
                <Setter Property="Background" TargetName="border1" Value="{DynamicResource ButtonPressedInnerBackgroundBrush}"/>
                <Setter Property="BorderBrush" TargetName="border1" Value="{DynamicResource ButtonPressedInnerBorderBrush}"/>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <Style TargetType="{x:Type Label}" x:Key="BackstageLabelBig">
        <Setter Property="Foreground" Value="#3B3B3B"/>
        <Setter Property="FontFamily" Value="Segoe UI" />
        <Setter Property="FontSize" Value="20"/>
    </Style>
    <Style TargetType="{x:Type Label}" x:Key="BackstageLabelSmall">
        <Setter Property="Foreground" Value="#3B3B3B"/>
        <Setter Property="FontFamily" Value="Segoe UI" />
        <Setter Property="FontWeight" Value="Bold" />
        <Setter Property="FontSize" Value="14"/>
    </Style>
    <LinearGradientBrush x:Key="GrayGradient" StartPoint="0.5, 0" EndPoint="0.5, 1">
        <GradientStop Color="{DynamicResource GrayStart}" Offset="0"/>
        <GradientStop Color="{DynamicResource GrayEnd}" Offset="1.0"/>
    </LinearGradientBrush>

    <Style x:Key="TransactionImage" TargetType="{x:Type Image}">
        <Setter Property="Stretch" Value="None" />
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="VerticalAlignment" Value="Center" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsTransferTransaction}" Value="true">
                <Setter Property="Source" Value="pack://application:,,,/Hisaab.Client.Common;component/Resources/Images/16/Transfer.png"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding TransactionType}" Value="1">
                <Setter Property="Source" Value="pack://application:,,,/Hisaab.Client.Common;component/Resources/Images/16/TransactionRed.png"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding TransactionType}" Value="2">
                <Setter Property="Source" Value="pack://application:,,,/Hisaab.Client.Common;component/Resources/Images/16/TransactionGreen.png"/>
            </DataTrigger>
        </Style.Triggers>
    </Style>

    <!-- Text Styles -->
    <Style x:Key="EditorLabel" TargetType="{x:Type Label}">
        <Setter Property="FontSize" Value="12" />
        <Setter Property="FontWeight" Value="Bold" />
    </Style>
    <Style x:Key="EditorTextBox" TargetType="{x:Type TextBox}">
        <Setter Property="Margin" Value="5" />
    </Style>
    <Style x:Key="EditorComboBox" TargetType="{x:Type ComboBox}">
        <Setter Property="Margin" Value="5" />
    </Style>
    <Style x:Key="EditorDatePicker" TargetType="{x:Type DatePicker}">
        <Setter Property="Margin" Value="5" />
    </Style>

    <Style x:Key="EditorMultiComboBox" TargetType="{x:Type extToolkit:CheckComboBox}">
        <Setter Property="Margin" Value="5" />
    </Style>

    <Style x:Key="Heading1" TargetType="{x:Type Label}">
        <Setter Property="FontSize" Value="24" />
        <Setter Property="FontWeight" Value="Bold" />
    </Style>
    <Style x:Key="Heading1Simple" TargetType="{x:Type Label}">
        <Setter Property="FontSize" Value="24" />
    </Style>
    <Style x:Key="Heading2" TargetType="{x:Type Label}">
        <Setter Property="FontSize" Value="16" />
        <Setter Property="FontWeight" Value="Bold" />
    </Style>
    <Style x:Key="Heading2Simple" TargetType="{x:Type Label}">
        <Setter Property="FontSize" Value="16" />
    </Style>

    <!-- List View Style -->
    <Style x:Key="ListMainHeading" TargetType="{x:Type TextBlock}">
        <Setter Property="FontSize" Value="16" />
        <Setter Property="Foreground" Value="{DynamicResource ListViewTextBrush}" />
        <Setter Property="FontFamily" Value="Segoe UI"/>
    </Style>
    <Style x:Key="ListSubHeading" TargetType="{x:Type TextBlock}">
        <Setter Property="FontSize" Value="13" />
        <Setter Property="Foreground" Value="{DynamicResource ListViewTextBrush}" />
        <Setter Property="FontFamily" Value="Segoe UI"/>
    </Style>
    <Style x:Key="ListText" TargetType="{x:Type TextBlock}">
        <Setter Property="FontSize" Value="11" />
        <Setter Property="Foreground" Value="{DynamicResource ListViewTextBrush}" />
        <Setter Property="FontFamily" Value="Segoe UI"/>
    </Style>
    <Style x:Key="WindowRegionStyle" TargetType="Window">
        <Setter Property="Background" Value="White" />
        <Setter Property="Margin" Value="0" />
        <Setter Property="Padding" Value="0" />
        <Setter Property="ResizeMode" Value="{Binding Path=Content.DataContext.ResizeMode, RelativeSource={RelativeSource Self}}" />
        <Setter Property="SizeToContent" Value="WidthAndHeight" />
        <Setter Property="Icon" Value="{Binding Path=Content.DataContext.Icon, RelativeSource={RelativeSource Self}}" />
        <Setter Property="Title" Value="{Binding Path=Content.DataContext.Title, RelativeSource={RelativeSource Self}}" />
    </Style>
    <Style x:Key="BackStageControl" TargetType="UserControl">
        <Setter Property="Padding" Value="50" />
        <Setter Property="ScrollViewer.CanContentScroll" Value="True" />
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
    </Style>
    <Style x:Key="BackstageLabel" TargetType="{x:Type Label}">
        <Setter Property="FontSize" Value="14" />
        <Setter Property="HorizontalAlignment" Value="Left"  />
        <Setter Property="VerticalAlignment" Value="Center" />
        <Setter Property="Foreground" Value="#FF5E5E5E" />
    </Style>
    <!-- Grid Style-->
    <Style TargetType="wpf:DataGrid">

        <!-- Make the border and grid lines a little less imposing -->
        <Setter Property="BorderBrush" Value="#DDDDDD" />
        <Setter Property="HorizontalGridLinesBrush" Value="#DDDDDD" />
        <Setter Property="VerticalGridLinesBrush" Value="#DDDDDD" />

        <Setter Property="RowStyle">
            <Setter.Value>
                <Style TargetType="wpf:DataGridRow">
                    <Style.Triggers>
                        <Trigger Property="IsSelected" Value="True">
                            <Setter Property="Background" Value="{DynamicResource PressedBrush}" />
                            <Setter Property="BorderBrush" Value="{DynamicResource PressedBorderBrush}" />
                            <Setter Property="Foreground" Value="Black" />
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Background" Value="{DynamicResource MouseOverBrush}" />
                            <Setter Property="BorderBrush" Value="{DynamicResource MouseOverBorderBrush}" />
                            <Setter Property="Foreground" Value="Black" />
                        </Trigger>
                    </Style.Triggers>
                </Style>
            </Setter.Value>
        </Setter>

        <Setter Property="CellStyle">
            <Setter.Value>
                <Style TargetType="wpf:DataGridCell">
                    <Style.Triggers>
                        <!-- Highlight selected rows -->
                        <Trigger Property="IsSelected" Value="True">
                            <Setter Property="Background" Value="{DynamicResource PressedBrush}" />
                            <Setter Property="BorderBrush" Value="{DynamicResource PressedBorderBrush}" />
                            <Setter Property="Foreground" Value="Black" />
                        </Trigger>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Background" Value="{DynamicResource MouseOverBrush}" />
                            <Setter Property="BorderBrush" Value="{DynamicResource MouseOverBorderBrush}" />
                            <Setter Property="Foreground" Value="Black" />
                        </Trigger>
                    </Style.Triggers>

                    <!-- Add some padding around the contents of a cell -->
                    <Setter Property="Padding" Value="4,3,4,3" />
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="wpf:DataGridCell">
                                <Border Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}">
                                    <ContentPresenter />
                                </Border>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>